﻿using System;
using System.Collections.Generic;

using Might.UIControls.PropertyEditor.Items;

namespace Might.UIControls.PropertyEditor {

    /// <summary>
    /// Interface for property editor View. Important for testing, we can create non visual view with this interface.
    /// </summary>
    public interface IPropertyEditorView {

        /// <summary>
        /// Occurs when some item in view changes.
        /// </summary>
        event EventHandler ItemChanged;

        /// <summary>
        /// Adds the property editor item to the view.
        /// </summary>
        /// <param name="groupName">Name of the group.</param>
        /// <param name="item">The item.</param>
        void AddItem( string groupName , IPropertyEditorItem item );

        /// <summary>
        /// Clears the property editor items from the view.
        /// </summary>
        void ClearItems();                    
    
    }

}